package io.mya.modules.customer.service.impl;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.mya.modules.customer.dao.CustomerDao;
import io.mya.modules.customer.entity.BankCardEntity;
import io.mya.modules.customer.entity.CustomerEntity;
import io.mya.modules.customer.entity.ZtreeEntity;
import io.mya.modules.customer.service.CustomerService;

@Service("customerService")
public class CustomerServiceImpl implements CustomerService{
	@Autowired
	private CustomerDao customerDao;
	@Override
	public List<CustomerEntity> queryList(Map<String, Object> params) {
		// TODO Auto-generated method stub
		return customerDao.queryList(params);
	}
	@Override
	public void update(CustomerEntity customerEntity) {
		// TODO Auto-generated method stub
		customerDao.update(customerEntity);
	}
	@Override
	public List<ZtreeEntity> findchByID(Long id) {
		// TODO Auto-generated method stub
		return customerDao.findchByID(id);
	}
	@Override
	public CustomerEntity findByiD(Long id) {
		// TODO Auto-generated method stub
		return customerDao.findByiD(id);
	}
	@Override
	public List<BankCardEntity> queryBankCard(Long id) {
		// TODO Auto-generated method stub
		return customerDao.queryBankCard(id);
	}
	@Override
	public BankCardEntity queryBankCardById(Long carid) {
		// TODO Auto-generated method stub
		return customerDao.queryBankCardById(carid);
	}
	@Override
	public void updateBank(BankCardEntity bankCardEntity) {
		// TODO Auto-generated method stub
		customerDao.updateBank(bankCardEntity);
	}


}
